/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package eyrolles.modele;

/**
 *
 * @author scriptoff
 */
public class Factory {
	
	
	public static Object instantiates(String className) 
		throws ClassNotFoundException, InstantiationException, IllegalAccessException
	{ 
			Class classe=Class.forName(className);
			Object objet=classe.newInstance();
			return (objet);
	}		
}
